[% FILTER null %]
[% pageicon = 'RADIO' %]
[% pagetitle = 'PLUGIN_SIRIUSRADIO' | string %]
[% pwd_list = BLOCK %]
					/ [% IF menulevel == 0 %][% "PLUGIN_SIRIUSRADIO" | string %][% END %]
					  [% IF menulevel > 0 %]<a href="index.html?menulevel=0&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO" | string %]</a>[% END %]
					  [% IF menulevel == 1 AND genreID %]/ <a href="index.html?menulevel=1&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSEGENRES" | string %]</a> / [% genreName %][% END %]
					  [% IF menulevel == 1 AND NOT genreID %] / [% "PLUGIN_SIRIUSRADIO_BROWSEGENRES" | string %][% END %]
					  [% IF menulevel == 2 %]/ [% "PLUGIN_SIRIUSRADIO_BROWSENAMES" | string %][% END %]
					  [% IF menulevel == 3 %]/ [% "PLUGIN_SIRIUSRADIO_BROWSENUMBERS" | string %][% END %]
					  [% IF menulevel == 4 %]/
						[% IF referer == 1 %]<a href="index.html?menulevel=1&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSEGENRES" | string %]</a> / <a href="index.html?menulevel=1&genreID=[% genreID %]">[% channelGenre %]</a> / [% channelName %][% END %]
					  	[% IF referer == 2 %]<a href="index.html?menulevel=2&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSENAMES" | string %]</a> / [% channelName %][% END %]
					  	[% IF referer == 3 %]<a href="index.html?menulevel=3&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSENUMBERS" | string %]</a> / [% channelName %][% END %]
					  	[% IF referer == 5 %]<a href="index.html?menulevel=5&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSEPLAYING" | string %]</a> / [% channelName %][% END %]
					  	[% IF referer == 6 %]<a href="index.html?menulevel=6&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_MYPRESETS" | string %]</a> / [% channelName %][% END %]
					  	[% IF referer == 7 %]<a href="index.html?menulevel=7&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSEEXTENDED" | string %]</a> / [% channelName %][% END %]
					  	[% IF referer == 8 %]<a href="index.html?menulevel=8&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSEREFRESH" | string %]</a> / [% channelName %][% END %]
					  [% END %]
					  [% IF menulevel == 5 %]/ [% "PLUGIN_SIRIUSRADIO_BROWSEPLAYING" | string %] <a href="index.html?menulevel=5&player=[% player | uri %]">([% "PLUGIN_SIRIUSRADIO_REFRESH" | string %])</a>[% END %]
					  [% IF menulevel == 6 %]/ [% "PLUGIN_SIRIUSRADIO_MYPRESETS" | string %] <a href="index.html?menulevel=6&player=[% player | uri %]">([% "PLUGIN_SIRIUSRADIO_REFRESH" | string %])</a>[% END %]
					  [% IF menulevel == 7 %]/ [% "PLUGIN_SIRIUSRADIO_BROWSEEXTENDED" | string %] <a href="index.html?menulevel=7&player=[% player | uri %]">([% "PLUGIN_SIRIUSRADIO_REFRESH" | string %])</a>[% END %]
					  [% IF menulevel == 8 %]/ [% "PLUGIN_SIRIUSRADIO_BROWSEREFRESH" | string %] <a href="index.html?menulevel=8&player=[% player | uri %]">([% "PLUGIN_SIRIUSRADIO_REFRESH" | string %])</a>[% END %]

[% IF menulevel > 0 AND menulevel != 8 %]
&nbsp;&nbsp;&nbsp;<a href="index.html?menulevel=8&player=[% player | uri %]">*</a>
[% END %]
[% END %]

[% END -%]
[% PROCESS pageheader.html noSpacer=1 %]

<!-- start plugins output -->
[% IF webMessage %]<center><h3>[% webMessage %]</h3></center>[% IF webRefresh > 0 %]<meta http-equiv="refresh" content="[% webRefresh %]">[% END %][% END %]
[% IF webMessage == 'Retrieving channel data...' %]<div class="homeMenuSection"><div>Stations Found: [% totalStations %]</div>[% END %]

[% IF menulevel == 0 AND NOT webRefresh%]
<div class="homeMenuSection">
    <div>BROWSE</div><p>
    <ul>
    <li>
 		<a href="index.html?menulevel=6&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_MYPRESETS" | string %]</a>
 	</li>
    <li>
 		<a href="index.html?menulevel=1&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSEGENRES" | string %]</a>
 	</li>
    <li>
 		<a href="index.html?menulevel=2&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSENAMES" | string %]</a>
 	</li>
    <li>
 		<a href="index.html?menulevel=3&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSENUMBERS" | string %]</a>
 	</li>
 	<li>
	 	<a href="index.html?menulevel=5&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSEPLAYING" | string %]</a>
 	</li>
 	<li>
		<a href="index.html?menulevel=7&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSEEXTENDED" | string %]</a>
 	</li>
 	<li>
		<a href="index.html?menulevel=8&player=[% player | uri %]">[% "PLUGIN_SIRIUSRADIO_BROWSEREFRESH" | string %]</a>
 	</li>
    </ul>
</div>
[% END %]
[% IF menulevel == 1 %]
	[% IF genreID %]
		<table cellspacing="0" width="100%">
			[% odd = 1 %]
			[% FOREACH station = stationList %]
			<tr>
				<td width="100%" [% IF odd %]class="odd"[% END %] [% IF not odd %]class="even"[% END %][% IF nowPlayingRef == stationRefs.$station %][% IF playing == 1 %] id="currentListItem"[% END %][% END %]>
			    	<a href="index.html?menulevel=4&referer=1&genreID=[% genreID %]&streamID=[% stationRefs.$station %]&player=[% player | uri %]">[% station %]</a>
			 	</td>
			 	[% IF player %]
				<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
					<a href="index.html?menulevel=1&genreID=[% genreID | uri %]&streamID=[% stationRefs.$station %]&action=play&player=[% player | uri %]"><img src="[% webroot %]html/images/b_play.gif" width=13 height=13 border=0 align="center" alt='Play' title='[% "PLAY" | string %]'></a>
				</td>
				<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
					<a href="index.html?menulevel=1&genreID=[% genreID | uri %]&streamID=[% stationRefs.$station %]&action=add&player=[% player | uri %]"><img src="[% webroot %]html/images/b_add.gif" border=0 align="center" width=13 height=13 alt='Add' title='[% "ADD_TO_PLAYLIST" | string %]'></a>
				</td>
				[% END %]
			</tr>
			[% odd = (not odd) %]
			[% END %]
		</table>
	[% ELSE %]
		<table cellspacing="0" width="100%">
			[% odd = 1 %]
			[% FOREACH station = stationList %]
			<tr>
			  <td width="100%" [% IF odd %]class="odd"[% END %] [% IF not odd %]class="even"[% END %]>
			      <a href="index.html?menulevel=1&genreID=[% station.value | uri %]&player=[% player | uri %]">[% station.key %]</a>
			 </td>
			</tr>
			[% odd = (not odd) %]
			[% END %]
		</table>
	[% END %]
[% END %]
[% IF menulevel == 2 %]
<table cellspacing="0" width="100%">
	[% odd = 1 %]
	[% FOREACH station = stationList %]
	<tr>
	  	<td width="100%" [% IF odd %]class="odd"[% END %] [% IF not odd %]class="even"[% END %][% IF nowPlayingRef == station.value %][% IF playing == 1 %] id="currentListItem"[% END %][% END %]>
	      <a href="index.html?menulevel=4&referer=2&streamID=[% station.value | uri %]&player=[% player | uri %]">[% station.key %]</a>
		 </td>
		[% IF player %]
		<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
			<a href="index.html?menulevel=2&streamID=[% station.value | uri %]&action=play&player=[% player | uri %]"><img src="[% webroot %]html/images/b_play.gif" width=13 height=13 border=0 align="center" alt='Play' title='[% "PLAY" | string %]'></a>
		</td>
		<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
			<a href="index.html?menulevel=2&streamID=[% station.value | uri %]&action=add&player=[% player | uri %]"><img src="[% webroot %]html/images/b_add.gif" border=0 align="center" width=13 height=13 alt='Add' title='[% "ADD_TO_PLAYLIST" | string %]'></a>
		</td>
		[% END %]
	</tr>
	[% odd = (not odd) %]
	[% END %]
</table>
[% END %]
[% IF menulevel == 3 %]
<table cellspacing="0" width="100%">
	[% odd = 1 %]
	[% FOREACH station = stationList %]
	<tr>
		<td width="100%" [% IF odd %]class="odd"[% END %] [% IF not odd %]class="even"[% END %][% IF nowPlayingRef == stationRefs.$station %][% IF playing == 1 %] id="currentListItem"[% END %][% END %]>
	      <a href="index.html?menulevel=4&referer=3&streamID=[% stationRefs.$station %]&player=[% player | uri %]">[% station %]</a>
	 	</td>
	 	[% IF player %]
		<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
			<a href="index.html?menulevel=3&streamID=[% stationRefs.$station %]&action=play&player=[% player | uri %]"><img src="[% webroot %]html/images/b_play.gif" width=13 height=13 border=0 align="center" alt='Play' title='[% "PLAY" | string %]'></a>
		</td>
		<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
			<a href="index.html?menulevel=3&streamID=[% stationRefs.$station %]&action=add&player=[% player | uri %]"><img src="[% webroot %]html/images/b_add.gif" border=0 align="center" width=13 height=13 alt='Add' title='[% "ADD_TO_PLAYLIST" | string %]'></a>
		</td>
		[% END %]
	</tr>
	[% odd = (not odd) %]
	[% END %]
</table>
[% END %]
[% IF menulevel == 4 %]
<table cellspacing="0" width="100%"><tr><td><img src="[% webroot %]plugins/SiriusRadio/html/images/[% channelNumber %].gif"></td><td style="vertical-align: middle">[% IF player %]<a href="index.html?menulevel=4&referer=[% referer %]&genreID=[% genreID | uri %]&streamID=[% streamID %]&action=play&player=[% player | uri %]">[% END %][% channelName %][% IF player %]</a>[% END %]</td></tr>
<tr><td>Now Playing:</td><td>[% lastSong %]</td></tr>
<tr><td>Channel Description:</td><td>[% channelDesc %]</td></tr>
<tr><td>Channel Number:</td><td>[% channelNumber %]</td></tr>
<tr><td>Channel Genre:</td><td>[% channelGenre %]</td></tr>
</table>
<BR><a href="index.html?menulevel=4&referer=[% referer %]&genreID=[% genreID | uri %]&streamID=[% streamID %]&addPreset=[% channelNumber %]&player=[% player | uri %]">Add to Presets</a>
<br><br>[% amazon %]
[% END %]
[% IF menulevel == 5 %]
<table cellspacing="0" width="100%">
	[% odd = 1 %]
	[% FOREACH station = stationList %]
	<tr>
		<td width="100%" [% IF odd %]class="odd"[% END %] [% IF not odd %]class="even"[% END %][% IF nowPlayingRef == stationRefs.$station %][% IF playing == 1 %] id="currentListItem"[% END %][% END %]>
	      <a href="index.html?menulevel=4&referer=5&streamID=[% stationRefs.$station %]&player=[% player | uri %]">[% station %]</a>
	 	</td>
		[% IF player %]
		<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
			<a href="index.html?menulevel=5&streamID=[% stationRefs.$station %]&action=play&player=[% player | uri %]"><img src="[% webroot %]html/images/b_play.gif" width=13 height=13 border=0 align="center" alt='Play' title='[% "PLAY" | string %]'></a>
		</td>
		<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
			<a href="index.html?menulevel=5&streamID=[% stationRefs.$station %]&action=add&player=[% player | uri %]"><img src="[% webroot %]html/images/b_add.gif" border=0 align="center" width=13 height=13 alt='Add' title='[% "ADD_TO_PLAYLIST" | string %]'></a>
		</td>
		[% END %]
	</tr>
	[% odd = (not odd) %]
	[% END %]
</table>

[% END %]
[% IF menulevel == 6 %]
<table cellspacing="0" width="100%">
	[% odd = 1 %]
	[% FOREACH station = stationList %]
	<tr>
		<td height="75" width="80" [% IF odd %]class="odd"[% END %] [% IF not odd %]class="even"[% END %][% IF nowPlayingRef == stationRefs.$station %][% IF playing == 1 %] id="currentListItem"[% END %][% END %]>
			[% IF player %]<a href="index.html?menulevel=6&streamID=[% stationRefs.$station %]&action=play&player=[% player | uri %]">[% END %]<img src="[% webroot %]plugins/SiriusRadio/html/images/[% stationNums.$station %].gif">[% IF player %]</a>[% END %]
		</td>
		<td width="100%" [% IF odd %]class="odd"[% END %] [% IF not odd %]class="even"[% END %] style="vertical-align: middle">
	    	<a href="index.html?menulevel=4&referer=6&streamID=[% stationRefs.$station %]&player=[% player | uri %]">[% station %]</a><BR>[% stationPlaying.$station %]
	 	</td>
	 	[% IF player %]
		<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
			<a href="index.html?menulevel=6&streamID=[% stationRefs.$station %]&action=play&player=[% player | uri %]"><img src="[% webroot %]html/images/b_play.gif" width=13 height=13 border=0 align="center" alt='Play' title='[% "PLAY" | string %]'></a>
		</td>
		<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
			<a href="index.html?menulevel=6&streamID=[% stationRefs.$station %]&action=add&player=[% player | uri %]"><img src="[% webroot %]html/images/b_add.gif" border=0 align="center" width=13 height=13 alt='Add' title='[% "ADD_TO_PLAYLIST" | string %]'></a>
		</td>
		[% END %]
	</tr>
	[% odd = (not odd) %]
	[% END %]
</table>
[% END %]
[% IF menulevel == 7 %]
<table cellspacing="0" width="100%">
	[% odd = 1 %]
	[% FOREACH station = stationList %]

	<tr [% IF odd %]class="odd"[% END %] [% IF not odd %]class="even"[% END %]>
		<td height="75" width="80"[% IF nowPlayingRef == stationRefs.$station %][% IF playing == 1 %] id="currentListItem"[% END %][% END %]><a name="[% stationRefs.$station %]"></a>
			[% IF player %]<a href="index.html?menulevel=7&streamID=[% stationRefs.$station %]&action=play&player=[% player | uri %]#[% stationRefs.$station %]">[% END %]<img src="[% webroot %]plugins/SiriusRadio/html/images/[% stationNums.$station %].gif">[% IF player %]</a>[% END %]
		</td>
		<td width="100%" style="vertical-align: middle">
	    	<a href="index.html?menulevel=4&referer=7&streamID=[% stationRefs.$station %]&player=[% player | uri %]">[% station %]</a><BR>[% stationPlaying.$station %]
	 	</td>
	 	[% IF player %]
		<td>
			<a href="index.html?menulevel=7&streamID=[% stationRefs.$station %]&action=play&player=[% player | uri %]#[% stationRefs.$station %]"><img src="[% webroot %]html/images/b_play.gif" width=13 height=13 border=0 align="center" alt='Play' title='[% "PLAY" | string %]'></a>
		</td>
		<td>
			<a href="index.html?menulevel=7&streamID=[% stationRefs.$station %]&action=add&player=[% player | uri %]#[% stationRefs.$station %]"><img src="[% webroot %]html/images/b_add.gif" border=0 align="center" width=13 height=13 alt='Add' title='[% "ADD_TO_PLAYLIST" | string %]'></a>
		</td>
		[% END %]
	</tr>
	[% odd = (not odd) %]
	[% END %]
</table>
[% END %]
[% IF menulevel == 8 %]
<meta http-equiv="Refresh" content="10; URL=index.html?menulevel=8&player=[% player | uri %]">
[% IF playing == 0 %]
<img src="[% webroot %]plugins/SiriusRadio/html/images/sirius.gif"><BR><BR>
[% END %]
[% IF playing == 1 %]
<table cellspacing="0" width="100%">
	<tr height="10"><td height="10"><span id="playingStatus">NOW PLAYING:</span></td></tr>
	<tr>
		<td height="75" width="80"><a name="[% stationRefs.$station %]"></a>
			<img src="[% webroot %]plugins/SiriusRadio/html/images/[% icon %].gif">
		</td>
		<td width="100%" style="vertical-align: middle">
	    	<B>[% song %]</B><BR><a href="index.html?menulevel=4&referer=8&streamID=[% nowPlayingRef %]&player=[% player | uri %]">[% channel %]</a>
	 	</td>
	</tr>
</table>
[% END %]
<table cellspacing="0" width="100%">
	[% odd = 1 %]
	<tr><td><span id="playingStatus">PRESETS:</span></td></tr>
	[% FOREACH station = stationList %]
	<tr>
		<td [% IF odd %]class="odd"[% END %] [% IF not odd %]class="even"[% END %] style="vertical-align: middle" [% IF nowPlayingRef == stationRefs.$station %][% IF playing == 1 %] id="currentListItem"[% END %][% END %]>
	    	<a href="index.html?menulevel=4&referer=8&streamID=[% stationRefs.$station %]&player=[% player | uri %]">[% station %]</a>
	    </td>
	    <td [% IF odd %]class="odd"[% END %] [% IF not odd %]class="even"[% END %]>[% stationPlaying.$station %]</td>
		<td [% IF odd %]class="odd" bgcolor="#d0d0d0"[% ELSE %]class="even" bgcolor="#FFFFFF"[% END %]>
			[% IF player %]
			<a href="index.html?menulevel=8&streamID=[% stationRefs.$station %]&action=play&player=[% player | uri %]"><img src="[% webroot %]html/images/b_play.gif" width=13 height=13 border=0 align="center" alt='Play' title='[% "PLAY" | string %]'></a>
			<a href="index.html?menulevel=8&streamID=[% stationRefs.$station %]&action=add&player=[% player | uri %]"><img src="[% webroot %]html/images/b_add.gif" border=0 align="center" width=13 height=13 alt='Add' title='[% "ADD_TO_PLAYLIST" | string %]'></a>
			[% END %]
		</td>
	</tr>
	[% odd = (not odd) %]
	[% END %]
</table>
[% IF playing == 1 %]<br>[% amazon %][% END %]
[% END %]
<!-- end plugins output -->
[% PROCESS pagefooter.html %]
